import java.util.Scanner;

public class Test1 {
    public static void main(String[] args)
   /* {
        Scanner scanner =new Scanner(System.in);
        int STB=scanner.nextInt();
        int JAVA=scanner.nextInt();
        int SQL=scanner.nextInt();
        System.out.println(JAVA-SQL);
        System.out.println((float)((STB+JAVA+SQL)/3));
    }*/
    /*{
        System.out.println("******欢迎来到抽奖界面*******");
        Scanner sc=new Scanner(System.in);
        int sum= sc.nextInt();
        System.out.println("请输入会员卡号:"+sum);
       int n=(int)(Math.random()*10);
       System.out.println("中奖号码为："+n);
       sum=sum/1000%10;
       if(sum!=n)
       {
           System.out.println("很遗憾，欢迎下次再来！");

       }
       else
           System.out.println("恭喜您是幸运观众");

    }*/
    /*{
        System.out.println("请输入是否是会员!y/n");
        Scanner sc=new Scanner(System.in);
        String s= sc.nextLine();
        System.out.println("请输入购物金额：");

        double a= sc.nextDouble();

        if(s.charAt(0)=='y')
        {
             if(a>=200)
             {
                 a=a*0.75;
                 System.out.println("实际支付:"+a);
             }
             else{
                 a=a*0.8;
                 System.out.println("实际支付:"+a);
             }
        }
        else{
            if(a>=100)
            {
                a=a*0.9;
                System.out.println("实际支付:"+a);
            }
            else{
                System.out.println("实际支付:"+a);
            }
        }
    }*/
    {
        System.out.println("输入小明的考试成绩（总分：100），显示所获奖励");
        Scanner sc=new Scanner(System.in);
        int sum=sc.nextInt();
        if(sum==100)
            System.out.println("爸爸给他买辆车");
        else if(sum>=90&&sum<100)
            System.out.println("妈妈给他买MP4");
        else if(sum>=60&&sum<90)
            System.out.println("妈妈给他买本参考书");
        else
            System.out.println("面壁思过！");
    }

}
